home *** CD-ROM | disk | FTP | other *** search
- /***
- Test class for testing the CDlg class
- ***/
-
- #include <windows.h>
- #include "menudef.h"
-
- // $HPP:Start
- /***
- Test class for testing the CDlg class
- Header file.
- ***/
-
- #ifndef CDlg1_INC
- #define CDlg1_INC
-
- #include "cdlg.hpp"
-
- class CDlg1 : public CDlg {
- public:
- BOOL DoCommand(WORD ControlID, LONG lParam);
- /*int DoDialog(HANDLE hInst, LPSTR lpDlgName, HWND hParent, LONG lParam);*/
-
- };
- #endif
- // $HPP:End
-
- BOOL CDlg1 :: DoCommand(WORD ControlID, LONG lParam)
- {
- switch (ControlID) {
- case IDOK:
- EndDialog(hDialog, TRUE);
- return TRUE;
-
- case IDCANCEL:
- EndDialog(hDialog, FALSE);
- return TRUE;
- }
- return FALSE;
- }
-
-